﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web;
using Top.Web.Api;

namespace Top.PointStore.Web.Core
{
    public class DuibaJsonResult : StringResult
    {
        public object _result { get; set; }
        public DuibaJsonResult(object result):base(false)
        {
            base.ContentType = "application/json";
            _result=result;
        }
        public override string ToString()
        {
            if (_result == null)
                return "";
            else
                return Newtonsoft.Json.JsonConvert.SerializeObject(_result);
        }
    }
}